import request from '@/utils/request'

// 查询标题名称分类列表
export function listName_category(query) {
  return request({
    url: '/name_category/name_category/list',
    method: 'get',
    params: query
  })
}

// 查询标题名称分类详细
export function getName_category(id) {
  return request({
    url: '/name_category/name_category/' + id,
    method: 'get'
  })
}

// 新增标题名称分类
export function addName_category(data) {
  return request({
    url: '/name_category/name_category',
    method: 'post',
    data: data
  })
}

// 修改标题名称分类
export function updateName_category(data) {
  return request({
    url: '/name_category/name_category',
    method: 'put',
    data: data
  })
}

// 删除标题名称分类
export function delName_category(id) {
  return request({
    url: '/name_category/name_category/' + id,
    method: 'delete'
  })
}
